class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :name, :limit => 100
      t.string :email, :limit => 200
      t.string :phone, :limit => 200
      t.string :password, :limit => 200
      
      t.references :country
      
      t.bool :allow_login
      t.bool :is_admin
      
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
